Skip to content

Multiplayer: implement drop user function#4854

Merged
Loobinex merged 3 commits into
dkfans:masterfrom
rainlizard:implement-bf_enet_drop_user
May 30, 2026
Merged

Multiplayer: implement drop user function#4854
Loobinex merged 3 commits into
dkfans:masterfrom
rainlizard:implement-bf_enet_drop_user

Conversation

@rainlizard
Copy link
Copy Markdown
Contributor

This is a bit of a blind fix, but according to a log that was provided after hitting "bf_enet_drop_user: enet_drop_user not implemented" the frontend would rapidly switch between FeSt_NET_START and FeSt_MP_MAPPACK_SELECT in a permanent loop. It seems a fairly straightforward fix, just implement enet_drop_user.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements ENet user dropping so lobby/login rejection paths can actually disconnect peers and notify the network layer instead of hitting the previous stub.

Changes:

  • Replaces the bf_enet_drop_user stub with queue cleanup, peer disconnect, and drop callback dispatch.
  • Uses the existing peer-to-user-id mapping to find and disconnect the matching ENet peer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/bflib_enet.cpp Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Loobinex Loobinex merged commit 1d8fa35 into dkfans:master May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants